package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.Ewm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EwmMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ewm record);

    int insertSelective(Ewm record);

    Ewm selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ewm record);

    int updateByPrimaryKey(Ewm record);

    List<Ewm> selectByProductId(int productId);

    List<Ewm> selectEWMList();
}